
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreServiceSpeechcraftRequest struct {

	KefuId string `json:"kefu_id" form:"kefu_id"`

	CateId string `json:"cate_id" form:"cate_id"`

	Title string `json:"title" form:"title"`

	Message string `json:"message" form:"message"`

	Sort string `json:"sort" form:"sort"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *StoreServiceSpeechcraftRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreServiceSpeechcraftRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"kefu_id": "required",

		"cate_id": "required",

		"title": "required",

		"message": "required",

		"sort": "required",

		"add_time": "required",

	}
}

func (r *StoreServiceSpeechcraftRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreServiceSpeechcraftRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreServiceSpeechcraftRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
